<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TestBat.Frontend.Controllers.ViewData.Overview.SchedulesViewData>" %>
<%@ Import Namespace="TestBat.Frontend.Helpers" %>

<asp:Content ContentPlaceHolderID="Header" runat="server">
	My schedules
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <%= Html.ImageLink("Index", "Overview", null, "~/Styles/Icons/16x16/back.png", "Back to the overview") %>
    
    <table>
        <thead>
            <tr>
                <th width="200" align="left">Name</th>
                <th width="200">Due</th>
                <th width="200">Time limit</th>
                <th>&nbsp;</th>
            </tr>
        </thead>
    <% foreach (var s in Model.Schedules)
       { %>
       <tr>
        <td><%= s.Name %></td>
        <td align="center"><%= s.End %></td>
        <td align="center"><%= s.Time %></td>
        <td>
            <%= Html.ImageLink("Introduction", "Test", new { scheduleID = s.ID }, "~/Styles/Icons/16x16/pencil.png", "Take test")%>
        </td>
       </tr>
    <% } %>
    </table>

</asp:Content>
